﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Management.Smo;

namespace ConnectSQLServer.Common
{
    public class InfoDatabase
    {
        private Server _SERVER;

        public Server SERVER
        {
            get { return _SERVER; }
            set { _SERVER = value; }
        }
        private int _databaseID;
        private int _tableID;
        private int _storedID;
        private string _tableName;

        public string TableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }
        private string _databaseName;

        public string DatabaseName
        {
            get { return _databaseName; }
            set { _databaseName = value; }
        }
        private string _storedName;

        public string StoredName
        {
            get { return _storedName; }
            set { _storedName = value; }
        }

        public InfoDatabase()
        {
            _SERVER = null;
            _databaseID = -1;
            _tableID = -1;
            _storedID = -1;
            _databaseName = string.Empty;
            _tableName = string.Empty;
            _storedName = string.Empty;
        }

        public int TableID
        {
            get { return _tableID; }
            set { _tableID = value; }
        }

        public int DatabaseID
        {
            get { return _databaseID; }
            set { _databaseID = value; }
        }

        public int StoredID
        {
            get { return _storedID; }
            set { _storedID = value; }
        }
    }
}
